package com.example.demo.Controller;
import com.example.demo.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/index/{id}")//页面的url地址
public class testController {
    @Autowired
    public UserService userService;
    @GetMapping
    public String getindex(@PathVariable String name)//对应函数
    {
        if (name!=null)
            return "A.toString()";//
        return name;
    }


}
